package cn.edu.fudan.type;

import java.util.*;

/**
 * Created by 80494 on 2017/4/3.
 *
 * a wavelet decomposition pattern in an fix order with support and confidence
 */
public class Pattern {
    private int order=0;
    private double suport=0.0;
    private double confidence=0.0;
    private List<Integer> dseries=new ArrayList<>();
    private List<Integer> gap=new ArrayList<>(); ;
    private int label=0;
    private List<Integer> subpatternseriesindex=new ArrayList<>(); ;

    public void setOrder(int order){
        this.order = order;
    }
    public void setSuport(double suport){
        this.suport = suport;
    }
    public void setConfidence(double confidence){this.confidence=confidence;}
    public void setDseries(List<Integer> dseries){
        this.dseries =dseries;
    }
    public void setGap(List<Integer> gap){
        this.gap =gap;
    }
    public void setLabel(int label){this.label = label;}
    public void setSubpatternseriesindex(List<Integer> subpatternseriesindex){this.subpatternseriesindex=subpatternseriesindex;}

    public int getLabel(){return label;}
    public int getOrder(){
        return order;
    }
    public double getSuport() {return  suport;}
    public double getConfidence(){return confidence;}
    public List<Integer> getDseries(){
        return dseries;
    }
    public List<Integer> getGap(){
        return gap;
    }
    public List<Integer> getSubpatternseriesindex(){return subpatternseriesindex;}




    @Override
    public String toString(){
        return   "［Order: "+order +"， dseries:"  +dseries+", gap:"+gap +"]";

    }

}